{% extends "admin_object.html" %}
{% block javascript %}
var createUrl = '{{ createUrl }}';

$(document).ready(function() {
    $('#id_vpd_element_type').bind('change', function(event) {
        console.log(this);
        window.location = createUrl + $(this).val();
    });
});
{% endblock %}